<!DOCTYPE html>
<html lang="zh"  xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>客服部--合同列表</title>
    <link rel="icon" href="favicon.ico" type="images/ico">
    <meta name="author" content="dc">
    <link rel="stylesheet" type="text/css" href="/css/materialdesignicons.min.css">
    <link rel="stylesheet" type="text/css" href="/css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="/css/animate.min.css">
    <link rel="stylesheet" type="text/css" href="/css/style.min.css">
    <link href="/js/bootstrap-table/bootstrap-table.min.css" rel="stylesheet"/>
    <link rel="stylesheet" href="/js/jquery-confirm/jquery-confirm.min.css"/>
    <!--时间选择插件-->
    <link rel="stylesheet" href="/js/bootstrap-datetimepicker/bootstrap-datetimepicker.min.css">
    <!--固定table列-->
    <link href="/js/bootstrap-table/extensions/fixed-columns/bootstrap-table-fixed-columns.min.css" rel="stylesheet"/>
    <!--日期选择插件-->
    <link rel="stylesheet" href="/js/bootstrap-datepicker/bootstrap-datepicker3.min.css">
    <link rel="stylesheet" href="/css/skin.css"/>
    <link rel="stylesheet" href="/css/bootstrap-select.css" type="text/css"/>
</head>
<body>
<div class="container-fluid p-t-15">
    <div class="row">
        <div class="col-sm-12">
            <div class="card">
                <div class="card-header">
                    <h1>合同列表</h1>
                </div>
                <div class="card-body">
                    <!--所属公司ID-->
                    <input type="hidden" id="companyId" name="companyId" th:value="${companyId}">
                    <div class="row content-action">
                        <div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">
                            <!-- 全部 本周 本月 本年 -->
                            <div class="time-search pull-left">
                                <input type="hidden" id="dateType" name="dateType"/>
                                <div class="all active-second" onclick="selectTime('all')">全部</div>
                                <div class="week"  onclick="selectTime('week')">本周</div>
                                <div class="month" onclick="selectTime('month')">本月</div>
                                <div class="year" onclick="selectTime('year')">本年</div>
                            </div>
                        </div>
                        <div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">
                            <div class="pull-right">
                                <div class="min-search pull-left">
                                    <input class="form-control" type="text" placeholder="请输入合同编号"
                                           id="contractNumberMin" name="contractNumberMin" autocomplete="off">
                                    <button class="btn btn-primary" type="button" id="btn-search-simple">
                                        <i class="mdi mdi-magnify"></i><span>搜索</span>
                                    </button>
                                </div>
                                <button class="btn btn-default btn-senior" data-toggle="collapse"
                                        data-target="#filterContent" aria-expanded="false"
                                        aria-controls="filterContent">
                                    <i class="mdi mdi-sort-variant"></i>高级筛选
                                </button>
                                <button class="btn btn-primary" type="button" data-loading-text="导出中，请稍后..." onclick="exportContract(this)">
                                    <span>导出</span>
                                </button>
                            </div>
                        </div>
                    </div>
                    <div class="collapse filter-content" id="filterContent">
                        <div class="row">
                            <div class="form-group col-lg-3 col-md-4 col-sm-6 col-xs-12">
                                <label for="customerName">客户名称</label>
                                <div>
                                    <input class="form-control" type="text" placeholder="请输入客户名称" id="customerName" name="customerName" autocomplete="off">
                                </div>
                            </div>
                            <div class="form-group col-lg-3 col-md-4 col-sm-6 col-xs-12">
                                <label for="contractStatusSelect">合同状态</label>
                                <div>
                                    <select id="contractStatusSelect" class="form-control" type="text" data-live-search="true">
                                        <option selected value="">全部</option>
                                        <option value="1">未生效</option>
                                        <option value="2">生效中</option>
                                        <option value="3">已结束</option>
                                        <option value="4">已作废</option>
                                        <option value="5">意外终止</option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group col-lg-3 col-md-4 col-sm-6 col-xs-12">
                                <label for="contractTypeSelect">合同类型</label>
                                <div>
                                    <select id="contractTypeSelect" class="form-control" type="text" data-live-search="true">
                                        <option selected value="">全部</option>
                                        <option value="1">非会员合同</option>
                                        <option value="2">会员新单合同</option>
                                        <option value="3">活动合同</option>
                                        <option value="4">会员续费合同</option>
                                        <option value="5">兑换合同</option>
                                        <option value="6">单品合同</option>
                                        <option value="7">会员单次合同</option>
                                    </select>
                                </div>
                            </div>

                            <div class="form-group col-lg-3 col-md-4 col-sm-6 col-xs-12">
                                <label for="approvalStatusSelect">是否特批</label>
                                <div>
                                    <select id="approvalStatusSelect" class="form-control" type="text" data-live-search="true">
                                        <option selected value="">全部</option>
                                        <option value="1">是</option>
                                        <option value="0">否</option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group col-lg-6 col-md-4 col-sm-6 col-xs-12">
                                <label class="control-label" for="createTmStart">创建起止日期</label>
                                <div class="form-content input-group">
                                    <input type="text" id="createTmStart" class="form-control date-input"
                                           placeholder="请输入起始时间" autocomplete="off">
                                    <span class="input-group-addon">至</span>
                                    <input type="text" id="createTmEnd" class="form-control date-input"
                                           placeholder="请输入截止时间" autocomplete="off">
                                </div>
                            </div>
                            <div class="form-group col-lg-6 col-md-4 col-sm-6 col-xs-12">
                                <label class="control-label" for="contractStartDate">合同起止日期</label>
                                <div class="form-content input-group">
                                    <input type="text" id="contractStartDate" class="form-control date-input"
                                           placeholder="请输入起始时间">
                                    <span class="input-group-addon">至</span>
                                    <input type="text" id="contractEndDate" class="form-control date-input"
                                           placeholder="请输入截止时间">
                                </div>
                            </div>
                            <div class="form-group col-lg-3 col-md-4 col-sm-6 col-xs-12">
                                <label class="control-label" for="contractStartDateStart">合同起始日期</label>
                                <div class="form-content input-group">
                                    <input type="text" id="contractStartDateStart" class="form-control date-input" placeholder="请输入开始日期" autocomplete="off">
                                    <span class="input-group-addon">至</span>
                                    <input type="text" id="contractStartDateEnd" class="form-control date-input" placeholder="请输入结束日期" autocomplete="off">
                                </div>
                            </div>
                            <div class="form-group col-lg-3 col-md-4 col-sm-6 col-xs-12">
                                <label class="control-label" for="contractEndDateStart">合同截止日期</label>
                                <div class="form-content input-group">
                                    <input type="text" id="contractEndDateStart" class="form-control date-input" placeholder="请输入开始日期" autocomplete="off">
                                    <span class="input-group-addon">至</span>
                                    <input type="text" id="contractEndDateEnd" class="form-control date-input" placeholder="请输入结束日期" autocomplete="off">
                                </div>
                            </div>
                            <div class="form-group col-lg-3 col-md-4 col-sm-6 col-xs-12">
                                <label for="paymentStatusSelect">回款状态</label>
                                <div>
                                    <select id="paymentStatusSelect" class="form-control" type="text" data-live-search="true">
                                        <option selected value="">全部</option>
                                        <option value="0">未回款</option>
                                        <option value="1">已回款</option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group col-lg-3 col-md-4 col-sm-6 col-xs-12">
                                <label for="electronicContractSelect">审核是否加盖公章</label>
                                <div>
                                    <select id="electronicContractSelect" class="form-control" type="text" data-live-search="true">
                                        <option selected value="">全部</option>
                                        <option value="1">是</option>
                                        <option value="0">否</option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group col-lg-3 col-md-4 col-sm-6 col-xs-12">
                                <label for="userSelect">创建人</label>
                                <div>
                                    <select id="userSelect" name="userSelect" class="form-control" data-live-search="true">
                                        <option value="">请选择</option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group col-lg-3 col-md-4 col-sm-6 col-xs-12">
                                <label for="contractReviewStatus">审核状态</label>
                                <div>
                                    <select id="contractReviewStatus" class="form-control" type="text" data-live-search="true">
                                        <option selected value="">全部</option>
                                        <option value="0">未审核</option>
                                        <option value="1">审核中</option>
                                        <option value="2">审核通过</option>
                                        <option value="3">审核失败</option>
                                        <option value="4">审核通过并盖章</option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group col-lg-3 col-md-4 col-sm-6 col-xs-12">
                                <label for="orderNumber">订单编号</label>
                                <div>
                                    <input class="form-control" type="text" placeholder="请输入订单编号" id="orderNumber" name="orderNumber" autocomplete="off">
                                </div>
                            </div>
                            <div class="form-group col-lg-3 col-md-4 col-sm-6 col-xs-12">
                                <label for="contractNumber">合同编号</label>
                                <div>
                                    <input class="form-control" type="text" placeholder="请输入合同编号" id="contractNumber" name="contractNumber" autocomplete="off">
                                </div>
                            </div>
                            <div class="form-group col-lg-3 col-md-4 col-sm-6 col-xs-12">
                                <label class="control-label" for="contractReceivablesStart">金额</label>
                                <div class="form-content input-group">
                                    <input type="text" id="contractReceivablesStart" class="form-control" placeholder="请输入开始金额" onkeyup="value=value.replace(/^\D*(\d*(?:\.\d{0,4})?).*$/g, '$1')" autocomplete="off">
                                    <span class="input-group-addon">至</span>
                                    <input type="text" id="contractReceivablesEnd" class="form-control" placeholder="请输入结束金额" onkeyup="value=value.replace(/^\D*(\d*(?:\.\d{0,4})?).*$/g, '$1')" autocomplete="off">
                                </div>
                            </div>
                            <div class="form-group col-lg-6 col-md-4 col-sm-6 col-xs-12">
                                <label>&nbsp;</label>
                                <div class="text-right">
                                    <button class="btn btn-primary" type="button" id="btn-search">
                                        <i class="mdi mdi-magnify"></i><span>搜索</span></button>
                                    <button class="btn btn-default" id="btn-reset">重置</button>
                                </div>
                            </div>
                        </div>
                    </div>
                    <table id="customerContractTableList"></table>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
<script type="text/javascript" src="/js/jquery.min.js"></script>
<script type="text/javascript" src="/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/js/perfect-scrollbar.min.js"></script>
<script type="text/javascript" src="/js/main.min.js"></script>
<script type="text/javascript" src="/js/bootstrap-table/bootstrap-table.min.js"></script>
<script type="text/javascript" src="/js/bootstrap-table/bootstrap-table-zh-CN.min.js"></script>
<script type="text/javascript" src="/js/popper.min.js"></script>
<script type="text/javascript" src="/js/jquery.cookie.min.js"></script>
<!--时间选择插件-->
<script src="/js/bootstrap-datetimepicker/moment.min.js"></script>
<script src="/js/jquery-confirm/jquery-confirm.min.js"></script>
<script src="/js/bootstrap-datetimepicker/bootstrap-datetimepicker.min.js"></script>
<script src="/js/bootstrap-datetimepicker/locale/zh-cn.js"></script>
<!--日期选择插件-->
<script src="/js/bootstrap-datepicker/bootstrap-datepicker.min.js"></script>
<script src="/js/bootstrap-datepicker/locales/bootstrap-datepicker.zh-CN.min.js"></script>
<script type="text/javascript" src="/js/crm/common/dataRangePicker.min.js"></script>
<script src="/js/crm/common/common.js"></script>
<!-- 多选框下拉 -->
<script type="text/javascript" src="/js/bootstrap-multiselect.js"></script>
<script type="text/javascript" src="/js/bootstrap-select.js"></script>
<script type="text/javascript" src="/js/bootstrap.lyear.dropdowntree.min.js"></script>
<!-- 拖动 -->
<script src="/js/bootstrap-table/extensions/resizable/bootstrap-table-resizable.min.js"></script>
<script src="/js/crm/common/colResizable-1.6.min.js"></script>
<script type="text/javascript" src="/js/bootstrap-select.js"></script>
<!-- 子页面公用js -->
<script src="/js/crm/common/pageCommon.js"></script>
<script type="text/javascript" src="/js/crm/contractReviewManager/contractForm.js"></script>
</html>